<?php

class Line extends CActiveRecord {
	public static function model($className = __CLASS__) {
		return parent::model ( $className );
	}
	
	public function tableName() {
		return '{{line}}';
	}
	
	public function rules() {
		return array (
			
			array (
				
				'lid,ldid', 
				'required' 
			), 
			array (
				
				'ltno,lname,lzrs,ldfid,lrid,lcid,lcity,ltid,ctgl,ctgl_value,ltime,lplace,ldesc,lkeywords,lpic,lprice1,lprice2,lprice3,book_price,lpmarks,lsmarks,lpayself', 
				'safe' 
			) 
		);
	}

	public function attributeLabels() {
		return array (
			
			'lid' => 'lid', 
			'ltno' => 'ltno', 
			'lname' => 'lname', 
			'lzrs' => 'lzrs', 
			'ldid' => 'ldid', 
			'ldfid' => 'ldfid', 
			'lrid' => 'lrid', 
			'lcid' => 'lcid', 
			'lcity' => 'lcity', 
			'ltid' => 'ltid', 
			'ctgl' => 'ctgl', 
			'ctgl_value' => 'ctgl_value', 
			'ltime' => 'ltime', 
			'lplace' => 'lplace', 
			'ldesc' => 'ldesc', 
			'lkeywords' => 'lkeywords', 
			'lpic' => 'lpic', 
			'lprice1' => 'lprice1', 
			'lprice2' => 'lprice2', 
			'lprice3' => 'lprice3', 
			'book_price' => 'book_price', 
			'lpmarks' => 'lpmarks', 
			'lsmarks' => 'lsmarks', 
			'lpayself' => 'lpayself', 
			'visa_material' => 'visa_material', 
			'lrecom' => 'lrecom', 
			'addtime' => 'addtime', 
			'aid' => 'aid', 
			'recommend' => 'recommend', 
			'lprompt' => 'lprompt', 
			'lsecure' => 'lsecure', 
			'recom_text' => 'recom_text', 
			'integral1' => 'integral1', 
			'integral2' => 'integral2', 
			'integral3' => 'integral3', 
			'sort' => 'sort', 
			'ahead_days' => 'ahead_days', 
			'labstract' => 'labstract', 
			'title_words' => 'title_words', 
			'title_customize_words' => 'title_customize_words', 
			'min_price' => 'min_price', 
			'market_price' => 'market_price', 
			'start_date' => 'start_date', 
			'end_date' => 'end_date', 
			'tel_code' => 'tel_code', 
			'valid' => 'valid', 
			'days' => 'days', 
			'people_number' => 'people_number', 
			'goback_traffic' => 'goback_traffic', 
			'ticket_price' => 'ticket_price', 
			'way_city' => 'way_city', 
			'daytime' => 'daytime', 
			'night' => 'night', 
			'remind' => 'remind', 
			'hits' => 'hits', 
			'item_xlname' => 'item_xlname' 
		);
	}
}